package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsKnowledgeInfo = "cms_knowledge_info"

func init() {
	var r = &CmsKnowledgeInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsKnowledgeInfo struct {
	KnowId       int    `column:"know_id" primary:"true" modify:"false" json:"knowId" form:"knowId"`
	KnowName     string `json:"knowName" form:"knowName" column:"know_name" modify:"true"`
	Type         int    `form:"type" column:"type" modify:"true" json:"type"`
	Summary      string `json:"summary" form:"summary" column:"summary" modify:"true"`
	Mark         string `form:"mark" column:"mark" modify:"true" json:"mark"`
	Level        int    `column:"level" modify:"true" json:"level" form:"level"`
	ParentId     int    `json:"parentId" form:"parentId" column:"parent_id" modify:"true"`
	OrderNum     int    `column:"order_num" modify:"true" json:"orderNum" form:"orderNum"`
	KnowOrder    int    `modify:"true" json:"knowOrder" form:"knowOrder" column:"know_order"`
	Subject      int    `modify:"true" json:"subject" form:"subject" column:"subject"`
	GradePart    int    `form:"gradePart" column:"grade_part" modify:"true" json:"gradePart"`
	Last         int    `json:"last" form:"last" column:"last" modify:"true"`
	OnlineStatus int    `json:"onlineStatus" form:"onlineStatus" column:"online_status" modify:"true"`
	Status       int    `modify:"true" json:"status" form:"status" column:"status"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *CmsKnowledgeInfo) Name() string {
	return RecordNameCmsKnowledgeInfo
}
